package com.dtguai.web.web.sys.dao;

import com.dtguai.web.base.mapper.BaseMapper;
import com.dtguai.web.web.sys.model.SysDefConfig;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: guoLiang
 * @date：2018-12-11 02:43:01
 * @mail 123086461@qq.com
 */
public interface SysDefConfigDao extends BaseMapper<SysDefConfig> {

    /**
     * 根据key，更新value
     *
     * @param paramKey   paramKey
     * @param paramValue paramValue
     * @return List<Integer>
     */
    @Select("update sys_def_config set param_value = #{paramValue} where param_key = #{paramKey}")
    List<Integer> updateValueByKey(@Param("paramKey") String paramKey, @Param("paramValue") String paramValue);

}